class Person {
    name: string = ''
    age: number = 0

    constructor(name:string, age: number) {
        this.name = name
        this.age = this.age
    }
    eat() {
        console.log(123);
    }
}

class Students extends Person {
    sno: number = 0

    constructor(name:string, age: number, sno: number) {
        super(name, age)
        this.sno = sno
    }
    eat() {
        console.log(123456);
        super.eat()
    }
    studying() {
        console.log('studdying');
        
    }
}

const stu = new Students('csc', 18, 11)
console.log(stu.eat());
